package patterns.filter;

/**
 * Created by lenovo on 2016/11/24 0024.
 * 实体类，包含基本属性和方法
 */
public class Person {
    private String name;//姓名
    private String gender;//性别
    private String maritalStatus;//婚姻状态

    /**
     * 多参数构造函数
     * @param name
     * @param gender
     * @param maritalStatus
     */
    public Person(String name, String gender, String maritalStatus) {
        this.name = name;
        this.gender = gender;
        this.maritalStatus = maritalStatus;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    public String getMaritalStatus() {
        return maritalStatus;
    }
}
